import request from '@/utils/request'

// 查询管网监测点信息列表
export function listDispatchPipeNetworkMonitoringPoints(query) {
  return request({
    url: '/system/dispatchPipeNetworkMonitoringPoints/list',
    method: 'get',
    params: query
  })
}

// 查询管网监测点信息详细
export function getDispatchPipeNetworkMonitoringPoints(pipeNetworkMonitoringPointsId) {
  return request({
    url: '/system/dispatchPipeNetworkMonitoringPoints/' + pipeNetworkMonitoringPointsId,
    method: 'get'
  })
}

// 新增管网监测点信息
export function addDispatchPipeNetworkMonitoringPoints(data) {
  return request({
    url: '/system/dispatchPipeNetworkMonitoringPoints',
    method: 'post',
    data: data
  })
}

// 修改管网监测点信息
export function updateDispatchPipeNetworkMonitoringPoints(data) {
  return request({
    url: '/system/dispatchPipeNetworkMonitoringPoints',
    method: 'put',
    data: data
  })
}

// 删除管网监测点信息
export function delDispatchPipeNetworkMonitoringPoints(pipeNetworkMonitoringPointsId) {
  return request({
    url: '/system/dispatchPipeNetworkMonitoringPoints/' + pipeNetworkMonitoringPointsId,
    method: 'delete'
  })
}
